	<?php echo $this->Html->script('admin/nou_curs'); ?>

	
	<div class="row">   	          
          <div class="col-md-12">
                <!-- Custom Tabs -->
                <div class="nav-tabs-custom">
                   <ul class="nav nav-tabs">
                      <li class="active"><a href="#tab_1" data-toggle="tab">Dades Curs</a></li>
                      <li><a href="#tab_2" data-toggle="tab">Editor</a></li>
                   </ul>
    	     	<div class="tab-content">
        	     <div class="tab-pane active" id="tab_1">
  	               <div class="row" >
		               <div class="col-md-12">
		               <form name="mod_info_curs" action="javascript:crear_nuevo_curso();" method="post" >
		              	 <div class="box-body" id="nuevo_curso">
						            <div class="form-group col-md-12">
							  	      <label><h4 class="negrita_cursiva">Tipus de curs</h4></label>
								      <select class="form-control " onClick="javascript:select_categoria_curs(this.value);" id="select_categoria_curs">
									      <?php foreach($categorias as $categoria){?>
										      <option  value="<?php echo($categoria->id_tipus_curs);?>"><?php echo($categoria->tipus_curs);?> </option>
										  <?php }?>
									  </select>
									</div>
									<div class="form-group col-md-12">
										<button class="btn bg-blue btn-social" data-toggle="modal" data-target="#nuevo_campo"><i class="fa  fa-plus-square-o"></i> <span>Afegir camp </span></button>
									</div>
									<div class="form-group col-md-6">
										<h4>Nom curs</h4>
									    <input type="text" class="form-control" id="nom_curs" placeholder="Nom Curs">
								    </div>
									<div class="form-group col-md-12">
									    <label for="exampleInputPassword1">Text descripcio</label>
									    <input type="text" class="form-control" id="text_descripcio" placeholder="Introduir text">
									</div>
									<div class="form-group col-md-12">
										<div class="col-md-3">
											<input id="avatar" type="file" name="avatar" >
										</div>
										<div class="col-md-2">
											<button id="upload" value="Upload">Cargar foto</button>
										</div>	
										
									</div>
									<div class="form-group col-md-12">
											<div id="output" class="col-md-1"></div>
									</div>
								
			                  </div>   <!-- /.row --> 
			                  
			                  
			                  <div class="box-footer col-md-12">
									<button type="submit" id="crear_curso" class="btn btn-primary">Crear Curs</button>
							  </div> 
							   </form>                     
		    	          </div> 
		    	             
					  </div>
		           </div><!-- /.tab-pane -->
		           <div class="tab-pane active" id="tab_2">
  	               <div class="row" >
  	               </div>
  	               </div>
  	            
		           
		           
		           
		           
		           
		           
        		 </div><!-- nav-tabs-custom -->
				<div>          
			</div><!-- /.col -->  
    	</div>
    </div>
 </div>    
    
         
      
      
      
      <!-- COMPOSE MESSAGE MODAL -->
        <div class="modal fade" id="nuevo_campo" tabindex="-1" role="dialog" aria-hidden="true" style="margin-top:5em;">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Afegir camp nou al formulari</h4>
                    </div>
                    <form action="#" method="post">
                        <div class="modal-body">
                            <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon">Nom camp</span>
                                    <input name="nom_camp" type="text" class="form-control" >
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="input-group">
                                    <span class="input-group-addon" >Tipus</span>
                                   	<select class="form-control "  id="select_categoria_curs">
                                   			  <option  value="href">Text</option>
										      <option  value="href">Enllaç</option>
									  </select>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer clearfix">
                        	<button type="button" onclick="crear_input_formulario(nom_camp.value);" class="btn btn-primary "><i ></i>Afegir camp</button>
                            <button type="button" class="btn btn-danger pull-left" data-dismiss="modal"><i ></i>Descartar</button>
                        </div>
                    </form>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
        
        
        <!-- COMPOSE MESSAGE MODAL -->
        
        <div class="modal fade" id="galeria_nou_curs" tabindex="-1" role="dialog" aria-hidden="true" style="margin-top:5em;">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Imatges</h4>
                    </div>
               </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->   	
    	
      
      
      <!-- 
        <div class="modal fade" id="nuevo_campo" tabindex="-1" role="dialog" aria-hidden="true" style="margin-top:5em;">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title">Afegir camp nou al formulari</h4>
                    </div>
                    <form action="#" method="post">
                        <div class="modal-body ">
                            <div class="form-group">
                            	<div class="row">
	                            <div class="form-group col-md-12">
	                                <div class="input-group col-md-12">
	                                    <span class="input-group-addon">Nom camp</span>
	                                    <input name="nom_camp" type="text" class="form-control" >
	                                </div>
	                                <div class="input-group col-md-12">
	                               		 <span class="input-group-addon">Tipus camp</span>
	                                    <select class="form-control " id="select_categoria_curs">
											      <option  value="href">Enllaç</option>
										  </select>
	                                </div>
	                            </div>
                       		 
	                        	<div class="modal-footer clearfix col-md-12">
	                        		<button type="button" onclick="crear_input_formulario(nom_camp.value);" class="btn btn-primary "><i ></i>Afegir camp</button>
	                           		 <button type="button" class="btn btn-danger pull-left" data-dismiss="modal"><i ></i>Descartar</button>
	                       		 </div>
	                       	  </div> <!-- end row -->
	                       </div>
	                       </div>
                    </form>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal --> 
      

